package com.ctbri.arrays;

import java.util.Arrays;
import java.util.Random;

public class Ex3 {
	public static double[][] method1(int size1, int size2, double up, double down) {
		Random rand = new Random();
		double[][] result = new double[size1][size2];
		for(int i = 0; i < result.length; i++)
			for(int j = 0; j < size2; j++)
				result[i][j] = rand.nextDouble() * (up - down) + down;
		return result;
	}
	
	public static void method2(double[][] d) {
		System.out.println(Arrays.deepToString(d));
	}
	
	public static void main(String[] args) {
		method2(method1(3,3,1,3));
	}
}
